package com.example.recycler.bsr;

import android.content.Intent;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.widget.Toast;

public class MainActivity extends AppCompatActivity {
    private BsWaterView mWaveView;



    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        mWaveView = (BsWaterView) findViewById(R.id.wave_view);
    }

    public void go1(View v) {
        Toast.makeText(this, "翻滚波浪", Toast.LENGTH_SHORT).show();
        mWaveView.startAnima();
    }

    public void go2(View v) {
        Toast.makeText(this, "ShowTime", Toast.LENGTH_SHORT).show();
        Intent intent=new Intent(this,BSActivity.class);
        startActivity(intent);
    }

    public void go3(View v) {


    }

    public void go4(View v) {


    }
}
